package com.ruoyi.assest.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysDept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.assest.mapper.ZcrzMapper;
import com.ruoyi.assest.domain.Zcrz;
import com.ruoyi.assest.service.IZcrzService;

/**
 * 资产台账Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-04
 */
@Service
public class ZcrzServiceImpl implements IZcrzService
{
    @Autowired
    private ZcrzMapper zcrzMapper;

    /**
     * 查询资产台账
     *
     * @param id 资产台账主键
     * @return 资产台账
     */
    @Override
    public Zcrz selectZcrzById(Long id)
    {
        return zcrzMapper.selectZcrzById(id);
    }

    /**
     * 查询资产台账列表
     *
     * @param zcrz 资产台账
     * @return 资产台账
     */
    @Override
    public List<Zcrz> selectZcrzList(Zcrz zcrz)
    {
        return zcrzMapper.selectZcrzList(zcrz);
    }

    /**
     * 新增资产台账
     *
     * @param zcrz 资产台账
     * @return 结果
     */
    @Override
    public int insertZcrz(Zcrz zcrz)
    {
        return zcrzMapper.insertZcrz(zcrz);
    }

    /**
     * 修改资产台账
     *
     * @param zcrz 资产台账
     * @return 结果
     */
    @Override
    public int updateZcrz(Zcrz zcrz)
    {
        return zcrzMapper.updateZcrz(zcrz);
    }

    /**
     * 批量删除资产台账
     *
     * @param ids 需要删除的资产台账主键
     * @return 结果
     */
    @Override
    public int deleteZcrzByIds(Long[] ids)
    {
        return zcrzMapper.deleteZcrzByIds(ids);
    }

    /**
     * 删除资产台账信息
     *
     * @param id 资产台账主键
     * @return 结果
     */
    @Override
    public int deleteZcrzById(Long id)
    {
        return zcrzMapper.deleteZcrzById(id);
    }

    @Override
    public List<Zcrz> selectCompanyList(SysDept dept) {

        return zcrzMapper.selectCompanyList(dept);
    }
}
